<template>
	<!-- 工作流 -->
	<view class="wrap">
		<view class="work-flow">
			<view class="flow-header">
				<icon-text icon-path="order" :icon-position="0" icon-text="流转信息" :icon-size="45"></icon-text>
			</view>
			<u-line></u-line>
			<view class="flow-content">
				<timeline>
					<timelineitem v-for="(item,index) in timeLine" :key="index" :leftText="item.person">
						<view class="sheet-content">
							<view class="content-main">
								<view class="sheet-state">{{ item.state }}</view>
								<view class="sheet-result">{{ item.result }}</view>
							</view>
							<view class="sheet-time">{{ item.time }}</view>
						</view>
					</timelineitem>
				</timeline>
			</view>
		</view>
	</view>
	
</template>

<script>
	import iconText from '@/components/icon-text.vue'
	import timeline from '@/components/chenbin-timeline/timeLine.vue'
	import timelineitem from '@/components/chenbin-timeline/timelineItem.vue'
	export default{
		components:{
			iconText,
			timeline,
			timelineitem
		},
		data(){
			return{
				timeLine:[
					{
						person:'管理员A',
						state:'审核',
						result:'已完成',
						time:'2021-06-09 09:21:22'
					},
					{
						person:'管理员A',
						state:'审核',
						result:'审核完成',
						time:'2021-06-09 09:21:22'
					},
					{
						person:'管理员A',
						state:'审核',
						result:'待审核',
						time:'2021-06-09 09:21:22'
					},
					{
						person:'张工',
						state:'维修',
						result:'已修好',
						time:'2021-06-09 09:21:22'
					},
					{
						person:'张工',
						state:'受理',
						result:'已受理',
						time:'2021-06-09 09:21:22'
					},
					{
						person:'李工',
						state:'报修',
						result:'报修成功',
						time:'2021-06-09 09:21:22'
					},
					
				]
			}
		}
	}
</script>

<style scoped lang="scss">
	.wrap{
		height: 1200rpx;
		width: 100%;
		background: #f5f5f5;
		padding: 30rpx;
	}
	
	.work-flow{
		display: flex;
		flex-direction: column;
		background: #ffffff;
		.flow-header{
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: space-between;
			padding: 20rpx 30rpx;
		}
	}
	.sheet-content{
		display: flex;
		flex-direction: column;
		.content-main{
			display: flex;
			flex-direction: row;
			
		}
	}
</style>
